package com.engr.lyx.common.base;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @program blog
 * @description: 节点
 * @author: LiuYanXin
 * @create: 2020-12-22 15:59
 */
@Data
public class TreeNode {

    protected long id;

    protected long parentId;

    protected List<TreeNode> children = new ArrayList<TreeNode>();

    public void add(TreeNode node) {
        children.add(node);
    }
}
